import type { ProColumns, ProFormColumnsType } from '@ant-design/pro-components';
export const TABLE_COLUMNS: ProColumns<any>[] = [
  {
    title: '序号',
    dataIndex: 'index',
    valueType: 'indexBorder',
    width: 45,
  },
  {
    title: '角色名称',
    dataIndex: 'name',
    hideInSearch: true,
  },
  {
    title: '角色id',
    dataIndex: 'id',
    hideInSearch: true,
  },
  {
    title: '角色标志',
    dataIndex: 'description',
    hideInSearch: true,
  },
  {
    title: '创建日期',
    dataIndex: 'createDate',
    hideInSearch: true,
    hideInForm: true,
  },
];
export const FORM_COLUMNS: ProFormColumnsType<any>[] = [
  {
    title: '角色名称',
    dataIndex: 'name',
    hideInSearch: true,
    formItemProps: {
      rules: [{ required: true }],
    },
  },
  {
    title: '角色标志',
    dataIndex: 'description',
    valueType: 'text',
    hideInSearch: true,
    formItemProps: {
      rules: [{ required: true }],
    },
  },
];
